
from fastapi import APIRouter
from src.servers.message import msg
from src.servers.users import user
from src.servers.menus import menu
from src.servers.readcnf import config
from src.servers.groups import group
from src.servers.apis import api
from src.servers.mindmap import mind
from src.servers.bugs import bug
from src.servers.wsserv import ws

routers = APIRouter()

routers.include_router(ws, prefix='/sys', tags=['websocket'])
routers.include_router(mind, prefix='/sys/mindmap', tags=['MindMap'])
routers.include_router(config, prefix='/sys/config', tags=['Config'])

router_list = [
    api,
    bug,
    group,
    msg,
    user,
    menu,
]

for router in router_list:
    routers.include_router(router)
